package com.jytc.mh.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * MhNewsmgr entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mh_newsmgr")
public class MhNewsmgr implements java.io.Serializable {

	// Fields

	private Integer newsId;
	private String newsTitle;
	private String newsContent;
	private String newsCreateTime;
	private Integer newsCreator;
	private String newsType;
	private String validFalg;

	// Constructors

	/** default constructor */
	public MhNewsmgr() {
	}

	/** minimal constructor */
	public MhNewsmgr(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	/** full constructor */
	public MhNewsmgr(String newsTitle, String newsContent,
			String newsCreateTime, Integer newsCreator, String newsType,
			String validFalg) {
		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
		this.newsCreateTime = newsCreateTime;
		this.newsCreator = newsCreator;
		this.newsType = newsType;
		this.validFalg = validFalg;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "NEWS_ID", unique = true, nullable = false)
	public Integer getNewsId() {
		return this.newsId;
	}

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}

	@Column(name = "NEWS_TITLE", nullable = false, length = 100)
	public String getNewsTitle() {
		return this.newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	@Column(name = "NEWS_CONTENT")
	public String getNewsContent() {
		return this.newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	@Column(name = "NEWS_CREATE_TIME", length = 14)
	public String getNewsCreateTime() {
		return this.newsCreateTime;
	}

	public void setNewsCreateTime(String newsCreateTime) {
		this.newsCreateTime = newsCreateTime;
	}

	@Column(name = "NEWS_CREATOR")
	public Integer getNewsCreator() {
		return this.newsCreator;
	}

	public void setNewsCreator(Integer newsCreator) {
		this.newsCreator = newsCreator;
	}

	@Column(name = "NEWS_TYPE", length = 1)
	public String getNewsType() {
		return this.newsType;
	}

	public void setNewsType(String newsType) {
		this.newsType = newsType;
	}

	@Column(name = "VALID_FALG", length = 1)
	public String getValidFalg() {
		return this.validFalg;
	}

	public void setValidFalg(String validFalg) {
		this.validFalg = validFalg;
	}

}